package com.example.clublesson01.adapter

import com.bumptech.glide.Glide
import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder


class ImageAdapter(data: List<Int>) : BannerImageAdapter<Int>(data) {
    override fun onBindView(holder: BannerImageHolder?, data: Int?, position: Int, size: Int) {
        if (holder != null) {
            Glide.with(holder.itemView)
                .load(data)
                .into(holder.imageView)
        }
    }
}
class ImageAdapter2(data: List<String>) : BannerImageAdapter<String>(data) {
    override fun onBindView(holder: BannerImageHolder?, data: String?, position: Int, size: Int) {
        if (holder != null) {
            Glide.with(holder.itemView)
                .load(data)
                .into(holder.imageView)
        }
    }
}